<?php
/**
 * <https://y.st./>
 * Copyright © 2017 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => $a['XML'],
	'<{subtitle}>' => 'Written in <span title="Web Programming 1">CS 2205</span> of <a href="http://www.uopeople.edu/">University of the People</a>, finalised on 2017-10-18',
	'<{copyright year}>' => '2017',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<h2>Exercise 1</h2>
<blockquote>
<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;exercises number=&quot;1&quot;&gt;
	&lt;date&gt;2017-10-12&lt;/date&gt;
	&lt;item&gt;This element represents the first exercise.&lt;/item&gt;
	&lt;item&gt;This element represents the second exercise.&lt;/item&gt;
&lt;/exercises&gt;</pre>
</blockquote>
<h2>Exercise 2</h2>
<blockquote>
<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;person&gt;
	&lt;name&gt;
		&lt;gname&gt;Marc&lt;/gname&gt;
		&lt;fname&gt;Sirdoreus&lt;/fname&gt;
	&lt;/name&gt;
	&lt;occup&gt;singer/instrumentalist/songwriter&lt;/occup&gt;
	&lt;address&gt;
		&lt;affil&gt;The Marc With a C Trio&lt;/affil&gt;
		&lt;pbox&gt;P.O. Box 63&lt;/pbox&gt;
		&lt;street&gt;2047 Some Street&lt;/street&gt;
		&lt;pcode&gt;FL-32899&lt;/pcode&gt;
		&lt;plocale&gt;Sleeping Moon Cafe&lt;/plocale&gt;
	&lt;/address&gt;
	&lt;hobbies&gt;
		&lt;hobby&gt;making up religions about squids and sharks&lt;/hobby&gt;
		&lt;hobby&gt;collecting vinyl records&lt;/hobby&gt;
		&lt;hobby&gt;listening to vinyl records&lt;/hobby&gt;
	&lt;/hobbies&gt;
&lt;/person&gt;</pre>
</blockquote>
<h2>Exercise 3</h2>
<img src="/img/CC_BY-SA_4.0/y.st./coursework/CS2205/XML_tree.png" alt="XML tree diagram" class="framed-centred-image" width="1027" height="407"/>
<h2><code>programOfStudy.xml</code></h2>
<blockquote>
<pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;programOfStudy&gt;
	&lt;semester&gt;
		&lt;term&gt;
			&lt;year&gt;2008&lt;/year&gt;
			&lt;season&gt;Fall&lt;/season&gt;
		&lt;/term&gt;
		&lt;courses&gt;
			&lt;course code=&quot;PHIL 101&quot; req_type=&quot;General Education Goal 8&quot;/&gt;
			&lt;course code=&quot;ECON 201&quot; req_type=&quot;General Education Goal 11&quot;/&gt;
			&lt;course code=&quot;MGT 217&quot; req_type=&quot;Core&quot;/&gt;
			&lt;course code=&quot;CIS 120&quot; req_type=&quot;Major&quot;/&gt;
			&lt;course code=&quot;CIS 403&quot; req_type=&quot;Major&quot;/&gt;
		&lt;/courses&gt;
	&lt;/semester&gt;
	&lt;semester&gt;
		&lt;term&gt;
			&lt;year&gt;2009&lt;/year&gt;
			&lt;season&gt;Spring&lt;/season&gt;
		&lt;/term&gt;
		&lt;courses&gt;
			&lt;course code=&quot;MGT 261&quot; req_type=&quot;Core&quot;/&gt;
			&lt;course code=&quot;MKTG 325&quot; req_type=&quot;Core&quot;/&gt;
			&lt;course code=&quot;CIS 220&quot; req_type=&quot;Major&quot;/&gt;
			&lt;course code=&quot;CIS 407&quot; req_type=&quot;Major&quot;/&gt;
			&lt;course code=&quot;CIS 490&quot; req_type=&quot;Major&quot;/&gt;
		&lt;/courses&gt;
	&lt;/semester&gt;
&lt;/programOfStudy&gt;</pre>
</blockquote>
END
);
